package com.lvt.example.thinking.in.spring.questions.L23.transactional;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * desc：class
 *
 CREATE TABLE `student` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `realname` varchar(255) DEFAULT NULL,
 PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

 * @author LT
 * @date 2022/10/25
 */
@Mapper
public interface StudentMapper {
    @Insert("INSERT INTO `student`(`realname`) VALUES (#{realname})")
    void saveStudent(Student student);
}
